package com.langll.ai.minio;

import com.langll.ai.AIChatApplication;
import com.langll.ai.minio.service.IAiDocumentFileService;
import com.langll.ai.tika.TikaUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * 操作向量数据库
 */
@Slf4j
@SpringBootTest(classes = AIChatApplication.class)
@RunWith(SpringRunner.class)public class TestVector {

    @Autowired
    IAiDocumentFileService iAiDocumentFileService;

    @Test
    public void vectorDeleteByFileName() {
        iAiDocumentFileService.vectorDeleteByFileName("/2025-04-15/8ed4bf6f-2aa2-4abe-9843-bfe642bed128.xlsx");
        Assert.assertNotNull(iAiDocumentFileService);
    }

}
